permalink: plugins/note-composer
Note composer is a core plugin that lets you merge two notes or extract part of a note into a new note.
Merging notes adds a note to another and removes the first one. Note composer updates all links to reference the merged note.
When you select the note to merge into, you can choose between the following methods:
Enter
: Adds the source note at the end to the destination note.Shift+Enter
: Adds the source note at the start of the destination note.Ctrl+Enter
(or Cmd+Enter
on macOS): Creates a new note with the content of the source note.To merge the active note with another note in your vault:
File explorer
Command palette
By default, Note composer asks you to confirm when merging notes. If you disable the confirmation, and you merge a note by mistake, you can still recover it with the File recovery plugin.
When you select the note to extract the selection into, you can choose between the following methods:
Enter
: Adds the selected text at the end to the destination note.Shift+Enter
: Adds the selected text at the start of the destination note.Ctrl+Enter
(or Cmd+Enter
on macOS): Creates a new note with the selected text.To extract text into a new note:
Editor
Command palette
By default, Note composer replaces the extracted text with a link to the destination note. Under settings, you can also change to instead embed the destination note, or to leave nothing behind.
By configuring a template, you can customize the content before you add it to the new note. To use a template, enter a Template file location in the plugin settings.
The template can contain the following variables:
Variable | Description |
---|---|
{{content}} |
The content to merge, or the extracted text selection. If you don't include this variable, Note composer adds the content at the bottom of the template. |
{{fromTitle}} |
Name of the source note. |
{{newTitle}} |
Name of the destination note. For example, to add the file name as a heading at the top of the file. |
{{date:FORMAT}} |
Creation date of the new note. For example, {{date:YYYY-MM-DD}} . |